Integrand size = 25, antiderivative size = 110 \[ \int \frac {\cot ^3(e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{3/2}} \, dx=\frac {(2 a+3 b) \text {arctanh}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a}}\right )}{2 a^{5/2} f}-\frac {2 a+3 b}{2 a^2 f \sqrt {a+b \sin ^2(e+f x)}}-\frac {\csc ^2(e+f x)}{2 a f \sqrt {a+b \sin ^2(e+f x)}} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 110, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3273, 79, 53, 65, 214} \[ \int \frac {\cot ^3(e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{3/2}} \, dx=\frac {(2 a+3 b) \text {arctanh}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a}}\right )}{2 a^{5/2} f}-\frac {2 a+3 b}{2 a^2 f \sqrt {a+b \sin ^2(e+f x)}}-\frac {\csc ^2(e+f x)}{2 a f \sqrt {a+b \sin ^2(e+f x)}} \]
[In]
[Out]
Rule 53
Rule 65
Rule 79
Rule 214
Rule 3273
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1-x}{x^2 (a+b x)^{3/2}} \, dx,x,\sin ^2(e+f x)\right )}{2 f} \\ & = -\frac {\csc ^2(e+f x)}{2 a f \sqrt {a+b \sin ^2(e+f x)}}-\frac {(2 a+3 b) \text {Subst}\left (\int \frac {1}{x (a+b x)^{3/2}} \, dx,x,\sin ^2(e+f x)\right )}{4 a f} \\ & = -\frac {2 a+3 b}{2 a^2 f \sqrt {a+b \sin ^2(e+f x)}}-\frac {\csc ^2(e+f x)}{2 a f \sqrt {a+b \sin ^2(e+f x)}}-\frac {(2 a+3 b) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,\sin ^2(e+f x)\right )}{4 a^2 f} \\ & = -\frac {2 a+3 b}{2 a^2 f \sqrt {a+b \sin ^2(e+f x)}}-\frac {\csc ^2(e+f x)}{2 a f \sqrt {a+b \sin ^2(e+f x)}}-\frac {(2 a+3 b) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b \sin ^2(e+f x)}\right )}{2 a^2 b f} \\ & = \frac {(2 a+3 b) \text {arctanh}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a}}\right )}{2 a^{5/2} f}-\frac {2 a+3 b}{2 a^2 f \sqrt {a+b \sin ^2(e+f x)}}-\frac {\csc ^2(e+f x)}{2 a f \sqrt {a+b \sin ^2(e+f x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.11 (sec) , antiderivative size = 70, normalized size of antiderivative = 0.64 \[ \int \frac {\cot ^3(e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{3/2}} \, dx=\frac {-a \csc ^2(e+f x)-(2 a+3 b) \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},1+\frac {b \sin ^2(e+f x)}{a}\right )}{2 a^2 f \sqrt {a+b \sin ^2(e+f x)}} \]
[In]
[Out]
Time = 1.15 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.35
method | result | size |
default | \(\frac {-\frac {1}{a \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}+\frac {\ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{\sin \left (f x +e \right )}\right )}{a^{\frac {3}{2}}}-\frac {1}{2 a \sin \left (f x +e \right )^{2} \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}-\frac {3 b}{2 a^{2} \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}+\frac {3 b \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}{\sin \left (f x +e \right )}\right )}{2 a^{\frac {5}{2}}}}{f}\) | \(148\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 190 vs. \(2 (94) = 188\).
Time = 0.38 (sec) , antiderivative size = 406, normalized size of antiderivative = 3.69 \[ \int \frac {\cot ^3(e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{3/2}} \, dx=\left [\frac {{\left ({\left (2 \, a b + 3 \, b^{2}\right )} \cos \left (f x + e\right )^{4} - {\left (2 \, a^{2} + 7 \, a b + 6 \, b^{2}\right )} \cos \left (f x + e\right )^{2} + 2 \, a^{2} + 5 \, a b + 3 \, b^{2}\right )} \sqrt {a} \log \left (\frac {2 \, {\left (b \cos \left (f x + e\right )^{2} - 2 \, \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {a} - 2 \, a - b\right )}}{\cos \left (f x + e\right )^{2} - 1}\right ) + 2 \, {\left ({\left (2 \, a^{2} + 3 \, a b\right )} \cos \left (f x + e\right )^{2} - 3 \, a^{2} - 3 \, a b\right )} \sqrt {-b \cos \left (f x + e\right )^{2} + a + b}}{4 \, {\left (a^{3} b f \cos \left (f x + e\right )^{4} - {\left (a^{4} + 2 \, a^{3} b\right )} f \cos \left (f x + e\right )^{2} + {\left (a^{4} + a^{3} b\right )} f\right )}}, -\frac {{\left ({\left (2 \, a b + 3 \, b^{2}\right )} \cos \left (f x + e\right )^{4} - {\left (2 \, a^{2} + 7 \, a b + 6 \, b^{2}\right )} \cos \left (f x + e\right )^{2} + 2 \, a^{2} + 5 \, a b + 3 \, b^{2}\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {-a}}{a}\right ) - {\left ({\left (2 \, a^{2} + 3 \, a b\right )} \cos \left (f x + e\right )^{2} - 3 \, a^{2} - 3 \, a b\right )} \sqrt {-b \cos \left (f x + e\right )^{2} + a + b}}{2 \, {\left (a^{3} b f \cos \left (f x + e\right )^{4} - {\left (a^{4} + 2 \, a^{3} b\right )} f \cos \left (f x + e\right )^{2} + {\left (a^{4} + a^{3} b\right )} f\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {\cot ^3(e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{3/2}} \, dx=\int \frac {\cot ^{3}{\left (e + f x \right )}}{\left (a + b \sin ^{2}{\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 117, normalized size of antiderivative = 1.06 \[ \int \frac {\cot ^3(e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{3/2}} \, dx=\frac {\frac {2 \, \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | \sin \left (f x + e\right ) \right |}}\right )}{a^{\frac {3}{2}}} + \frac {3 \, b \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | \sin \left (f x + e\right ) \right |}}\right )}{a^{\frac {5}{2}}} - \frac {2}{\sqrt {b \sin \left (f x + e\right )^{2} + a} a} - \frac {3 \, b}{\sqrt {b \sin \left (f x + e\right )^{2} + a} a^{2}} - \frac {1}{\sqrt {b \sin \left (f x + e\right )^{2} + a} a \sin \left (f x + e\right )^{2}}}{2 \, f} \]
[In]
[Out]
\[ \int \frac {\cot ^3(e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{3/2}} \, dx=\int { \frac {\cot \left (f x + e\right )^{3}}{{\left (b \sin \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cot ^3(e+f x)}{\left (a+b \sin ^2(e+f x)\right )^{3/2}} \, dx=\int \frac {{\mathrm {cot}\left (e+f\,x\right )}^3}{{\left (b\,{\sin \left (e+f\,x\right )}^2+a\right )}^{3/2}} \,d x \]
[In]
[Out]